package com.lpf.hotelsystem.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 客房预订信息实体表(RomReservation)实体类
 *
 * @author makejava
 * @since 2025-01-18 19:19:58
 */
public class RomReservation implements Serializable {
    private static final long serialVersionUID = -87437371903261621L;
/**
     * 编号
     */
    private Integer reservationId;
/**
     * 状态
     */
    private Integer status;
/**
     * 下单时间
     */
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
// 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty(name = "orderTime",notes = "下单时间",dataType = "date",required = true)
    private Date orderTime;
/**
     * 预定天数
     */
    private Integer days;
/**
     * 入住时间
     */
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
// 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty(name = "chedkTime",notes = "入住时间",dataType = "date",required = true)
    private Date checkInTime;
/**
     * 入住人姓名
     */
    private String checkInName;
/**
     * 入住人电话
     */
    private String checkInPhone;
/**
     * 预定的客房
     */
    private Integer userId;
/**
     * 下单由用户
     */
    private Integer roomInfoId;


    public Integer getReservationId() {
        return reservationId;
    }

    public void setReservationId(Integer reservationId) {
        this.reservationId = reservationId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public Date getCheckInTime() {
        return checkInTime;
    }

    public void setCheckInTime(Date checkInTime) {
        this.checkInTime = checkInTime;
    }

    public String getCheckInName() {
        return checkInName;
    }

    public void setCheckInName(String checkInName) {
        this.checkInName = checkInName;
    }

    public String getCheckInPhone() {
        return checkInPhone;
    }

    public void setCheckInPhone(String checkInPhone) {
        this.checkInPhone = checkInPhone;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRoomInfoId() {
        return roomInfoId;
    }

    public void setRoomInfoId(Integer roomInfoId) {
        this.roomInfoId = roomInfoId;
    }

}

